package com.itheima.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Jt
 * @date 2021/4/7 9:42
 */

@Configuration
public class FeignConfiguration {

    @Bean
    public Logger.Level feignLoggerLevel() {
//        NONE, 默认不打印日志
//        BASIC, 打印基本信息
//        HEADERS, 基本信息 + 请求头
//        FULL; 都打印
        return Logger.Level.FULL;
    }

}
